.login-container {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-form-wrapper {
    position: fixed; /* 改为fixed定位 */
    top: 50%;
    right: 300px;
    transform: translateY(-50%);
    width: 400px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.login-form {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-form-wrapper {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .login-form-wrapper {
        width: 100%;
        max-width: 100%;
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        transform: none;
        border-radius: 8px 8px 0 0;
        padding: 30px 20px;
    }
}

/* 背景遮罩 */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

.login-form-wrapper {
    animation: slideInRight 0.5s ease-out forwards;
}

@media (max-width: 768px) {
    @keyframes slideInUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    .login-form-wrapper {
        animation: slideInUp 0.5s ease-out forwards;
    }
}